<?
class CBuffer
{
	private $CONTENT = '';
	
	function __construct()
	{
		$this->StartBuffer();
	}
	
//	function __destruct()
//	{
//		return true;
//	}
	
	public function StartBuffer()
	{
		ob_start();
	}
	
	public function StopBuffer()
	{
		$this->CONTENT = ob_get_contents();
		$this->CleanBuffer();
	}
	
	public function CleanBuffer()
	{
		ob_end_clean();
	}
	
	public function GetBuffer()
	{
		$this->StopBuffer();
		return $this->CONTENT;
	}
	
//	public function ShowBuffer()
//	{
//		echo $this->CONTENT;
//	}
}